import 'package:flutter/cupertino.dart';
import 'package:flutter/widgets.dart';

class Test12 extends StatefulWidget {
  @override
  _Test12State createState() => _Test12State();
}

class _Test12State extends State<Test12> {
  double value = 0;

  @override
  Widget build(BuildContext context) {
    return Container(
      child: Center(
        child: Column(
          mainAxisSize: MainAxisSize.min,
          children: [
            CupertinoSlider(
                value: value,
                onChanged: (v) {
                  setState(() {
                    value = v;
                  });
                })
          ],
        ),
      ),
    );
  }
}
